<!DOCTYPE html>
<html lang="zh">
<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="common/header :: header(~{::title},~{::link},~{})">

    <title>jira详情</title>
    <link rel="icon" th:href="@{/assets/img/lcxm.ico}" type="image/ico">
    <link rel="stylesheet" th:href="@{/assets/css/common.css}">
</head>
<body class="body">
<!--导航-->
<div th:replace="common/nav :: nav(true)"></div>

<div class="container">
    <div class="row row-nocol">
        <table class="table table-condensed">
            <caption>Jira详情</caption>
            <tr>
                <th>jira号:</th>
                <th th:text="${detail?.jira?.code}" class="text-info">code</th>
                <th>预计工时:</th>
                <th th:text="${detail?.jira.duration}" class="text-info" >2024-12-12</th>
                <th>已用工时(自身)</th>
                <th th:text="${detail?.jira?.getUsedPersonDays()}" data-toggle="tooltip" th:title="${detail?.jira.usedTime}" class="text-info">100</th>
            </tr>
            <tr>
                <th>子任务已用工时:</th>
                <th th:text="${detail?.jira?.getSubUsedPersonDays()}" data-toggle="tooltip" th:title="${detail?.jira.subUsedTime}" class="text-info">2024-12-12</th>
                <th>已用工时(合计)</th>
                <th th:text="${detail?.jira?.getTotalUsedPersonDays()}" class="text-info">100</th>
            </tr>
        </table>
        <!--列表栏-->
        <form class="nocol">
            <table class="table table-striped  table-hover table-bordered stable">
                <caption>自身已用工时列表</caption>
                <thead>
                <tr class="text-center">
                    <th>JIRA</th>
                    <th>姓名</th>
                    <th>日期</th>
                    <th>工时(分钟)</th>
                    <th>内容</th>
                </tr>
                </thead>
                <tbody align="center">
                <tr th:each="cur:${detail?.workReports}">
                    <td th:text="${cur.jira}"></td>
                    <td th:text="${cur.userName}"></td>
                    <td th:text="${cur.date}"></td>
                    <td th:text="${cur.duration}">100</td>
                    <td th:title="${cur.content}" style="white-space: pre-wrap" data-toggle="tooltip"
                        th:text="${#strings.abbreviate(cur.content,20)}">content
                    </td>
                </tr>
                </tbody>
            </table>

            <table class="table table-striped  table-hover table-bordered stable">
                <caption>子jira已用工时列表</caption>
                <thead>
                <tr class="text-center">
                    <th>JIRA</th>
                    <th>姓名</th>
                    <th>日期</th>
                    <th>工时(分钟)</th>
                    <th>内容</th>
                </tr>
                </thead>
                <tbody align="center">
                <tr th:each="cur:${detail?.subWorkReports}">
                    <td th:text="${cur.jira}"></td>
                    <td th:text="${cur.userName}"></td>
                    <td th:text="${cur.date}"></td>
                    <td th:text="${cur.duration}">100</td>
                    <td th:title="${cur.content}" style="white-space: pre-wrap" data-toggle="tooltip"
                        th:text="${#strings.abbreviate(cur.content,20)}">content
                    </td>
                </tr>
                </tbody>
            </table>

            <hr/>

            <div class="form-group clearfix">
                <div class="text-center col-sm-10">

                    <a th:if="${#strings.isEmpty(back)}" type="button" class="btn btn-lg  btn-info" th:href="@{/jira/}">
                        <i class="glyphicon glyphicon-repeat"></i> 返回
                    </a>
                    <a th:unless="${#strings.isEmpty(back)}" type="button" class="btn btn-lg  btn-info" th:href="@{${back}}">
                        <i class="glyphicon glyphicon-repeat"></i> 返回
                    </a>
                </div>
            </div>
        </form>
    </div>
</div>
<!-- 引入通用js-->
<div th:replace="common/footer :: footer"></div>
</body>
</html>